<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../../inc/global.jsp" 
%><compress:html enabled="true" removeComments="false" compressJavaScript="true" yuiJsDisableOptimizations="true">
<!doctype html>
<html>
<head>
<title><fmt:message key="jsp.a.batch.list"/></title>
<%@include file="../head.jsp" %>
<style type="text/css">
.pagination {margin:0px}
.menu {width:30px;}
</style>
<script type="text/javascript">
$(function(){
	$('.price').poshytip({
		className: 'tip-yellowsimple',
		alignTo: 'target',
		alignX: 'center',
		alignY: 'top',
		showTimeout: 10,
		offsetY: 5	,
		content:function(callback){
			 return $(this).next().html();
		}
	});
});
</script>
</head>
<body>
<div class="wrapper">
<%@include file="../header.jsp" %>
<div class="body">
<div class="list">
<div class="listnav">
<form action="/a/store/list" method="get">
<input type="text" id="q" name="q" value="${q}" style="width:180px;" class="input"/>
<input type="submit" name="" value="<fmt:message key="message.find.sure" />" />
</form>
</div>
<table>
<thead>
<tr>
<th>批次</th>
<th><fmt:message key="message.brand" /></th>
<th><fmt:message key="message.category" /></th>
<th>型号</th>
<th>首入库房</th>
<th>入库时间 [数量]</th>
<th>本批剩余</th>
<c:if test="${STORE_VIEW_COST}">
<th><fmt:message key="message.trade.price" /></th>
</c:if>
<c:if test="${SELL_MODIFY}">
<th><fmt:message key="message.sell" /></th>
</c:if>
<c:if test="${STORE_MODIFY}">
<th><fmt:message key="message.add" /></th>
</c:if>
<c:if test="${STORE_MODIFY}">
<th><fmt:message key="message.edit" /></th>
</c:if>
<c:if test="${STORE_BACKTRACK}">
<th><fmt:message key="message.return.goods" /></th>
</c:if>
</tr>
</thead>
<tbody>
<c:if test="${empty voList}">
<tr>
<td></td>
<td></td>
<td></td>
<td>暂无记录...</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</c:if>
<c:forEach var="item" items="${voList}" varStatus="s">
<c:if test="${(s.index % 2) != 0}">
<tr class="trbg">
</c:if>
<c:if test="${(s.index % 2) == 0}">
<tr>
</c:if>
<td>...<c:out value="${fn:substring(item.id, 12, 17)}" /></td>
<td><a href="/a/store/list?bid=${item.brand.id}&cid=${cid}">${item.brand.name}</a></td>
<td><a href="/a/store/list?cid=${item.category.id}&bid=${bid}">${item.category.name}</a></td>
<td><a href="###" title="${item.goods.displayName}">${item.goods.name}</a></td>
<td>${item.storehouse.name}</td>
<td><fmt:formatDate pattern="yy-MM-dd hh:mm:ss" value="${item.addTime}" /> <a href="###" title="查看本批次销售记录">[${item.total}]</a></td>
<td>${item.statusNormalCount}</td>
<c:if test="${STORE_VIEW_COST}">
<td style="cursor:pointer">
<span class="price">${item.trade}</span>
<div class="hide">
<p title="${item.purchase}">成本价：${item.cost}</p>
</div>
</td>
</c:if>
<c:if test="${SELL_MODIFY}">
<td>
<c:if test="${item.statusNormalCount>0}">
<a href="/a/sell/form?sgid=${item.goodsId}&bcid=${item.id}&backURL=${backURL}"><fmt:message key="message.sell" /></a>
</c:if>
<c:if test="${item.statusNormalCount<=0}">
没有剩余
</c:if>
</td>
</c:if>
<c:if test="${STORE_MODIFY}">
<td><a href="/a/store/form?gid=${item.goods.id}&bid=${item.brand.id}&cid=${item.category.id}&backURL=${backURL}"><fmt:message key="message.add" /></a></td>
</c:if>
<c:if test="${STORE_MODIFY}">
<td><a href="/a/batch/modify?id=${item.id}&backURL=${backURL}"><fmt:message key="message.edit" /></a></td>
</c:if>
<c:if test="${STORE_BACKTRACK}">
<td>
<c:if test="${item.statusNormalCount>0}">
<a href="/a/store/backtrack/form?gid=${item.goods.id}&bcid=${item.id}&backURL=${backURL}"><fmt:message key="message.return" /></a>
</c:if>
<c:if test="${item.statusNormalCount==0}">
<fmt:message key="message.return" />
</c:if>
</td>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>
${pagination}
</div>
<div class="sidebarMenu">
<ul>
<li><a href="/a/store/form">添加库存</a></li>
</ul>
</div>
<%@ include file="sidebar.jsp" %>
<!--  -->
</div>
</div>
</body>
</html>
</compress:html>